package com.zyx.bean;

import java.io.Serializable;

public class Student implements Serializable {
    //序列化版本号 介意申明
    private static final long serialVarsionUID=1L;

    private String stuName;
    private int stuAge;
    private boolean stuSex;

    public Student() {
    }

    public Student(String stuName, int stuAge, boolean stuSex) {
        this.stuName = stuName;
        this.stuAge = stuAge;
        this.stuSex = stuSex;
    }

    public String getStuName() {
        return stuName;
    }

    public void setStuName(String stuName) {
        this.stuName = stuName;
    }

    public int getStuAge() {
        return stuAge;
    }

    public void setStuAge(int stuAge) {
        this.stuAge = stuAge;
    }

    public boolean isStuSex() {
        return stuSex;
    }

    public void setStuSex(boolean stuSex) {
        this.stuSex = stuSex;
    }

    public void sayHi(){
        System.out.println("你好");
    }

    @Override
    public String toString() {
        return "Student{" +
                "stuName='" + stuName + '\'' +
                ", stuAge=" + stuAge +
                ", stuSex=" + stuSex +
                '}';
    }
}
